//
//  MyOfferInformationViewController.m
//  GLGW_Shoping
//
//  Created by yang on 2018/12/3.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "MyOfferInformationViewController.h"
#import "MyOfferInformationViewModel.h"
#import "GoodsInformationViewController.h"

@interface MyOfferInformationViewController ()<OfferInformationDelegate>
@property (nonatomic,strong) MyOfferInformationViewModel * offerViewModel;
@end

@implementation MyOfferInformationViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title =@"张海涛的报价";
    self.offerViewModel = [[MyOfferInformationViewModel alloc] initWithViewToViewModel:self.groupedTableView theSuperView:self.view];
    self.offerViewModel.delegate = self;
}

#pragma mark ---- OfferInformationDelegate
-(void)offerPushGoodsInformation{
    GoodsInformationViewController * goodsInforVC = [GoodsInformationViewController new];
    [self.navigationController pushViewController:goodsInforVC animated:YES];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
